execute

fun <T> execute(block: () -> Promise<T>): Promise<T>

Executes block if within the window's limit; rejects otherwise.